home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 485 < prev    next >
Internet Message Format  |  1996-08-06  |  1KB

  1. Path: in2.uu.net!van-bc!vanbc!owent
  2. From: owent@vanbc.wimsey.com (Owen Townsend)
  3. Newsgroups: comp.std.c
  4. Subject: mapping a C structure
  5. Date: 3 Mar 1996 20:45:30 GMT
  6. Organization: Wimsey Information Services
  7. Message-ID: <4hd0db$89l@wolfe.wimsey.com>
  8. NNTP-Posting-Host: vanbc.wimsey.com
  9. Keywords: C structure layout map
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Does anybody have a program to calculate byte displacements for all fields
  13. within a C structure ?
  14.  
  15. I am assisting mainframe COBOL users to convert to Unix Micro Focus COBOL
  16. & 1 user is trying to modify his COBOL COPY book to match the new C structure
  17. in his ALLTAX payroll package. I already have a utility 'cobmap' that maps
  18. out COBOL copy books. If I could find a Cmap utility, I could then compare
  19. the byte displacements & total records size to confirm correct conversion.
  20.  
  21. If I have to I could probably write a Cmap but it would save time if somebody
  22. knows of one. It would not have to be very rigorous. Would have to provide
  23. for UNIONs, structure alignments (4 byte & 8 byte boundaries). My user's
  24. machine is an HP, but my own is a PC using SCO Unix.
  25.  
  26. Thanks, Owen Townsend, owent@wimsey.bc.ca
  27.